# -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 11:00:06 2015

@author: liliangrong
"""
def break_words(stuff):
    """This function will break up words for us."""
    words = stuff.split(' ')
    return words

def word(words):
    num1 = 0
    words_len = len(words)
    while num1 < words_len:         #填写字符串的原长度，不然以pop()后的字符串长度为准，无法完全遍历
        word = words.pop(0)
        print num1,"> ",word
        num1 += 1
    else:
        return u"没有更多数据了！"
    
    
words = "This function will break up words for us."
l = break_words(words)
print l
print len(l)
r = word(l)
print r